From: Keir Fraser Date: Mon, 12 May 2008 10:16:43 +0000 (+0100) Subject: ioemu: Fix build: use uint64_t rather than u64. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14215^2~26 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=543cb6d7514cf083463d210b6fa8ec9a0d4e0d38;p=xen.git ioemu: Fix build: use uint64_t rather than u64. Signed-off-by: Keir Fraser --- diff --git a/tools/ioemu/hw/pass-through.h b/tools/ioemu/hw/pass-through.h index 8062c20932..50f7af5568 100644 --- a/tools/ioemu/hw/pass-through.h +++ b/tools/ioemu/hw/pass-through.h @@ -76,7 +76,7 @@ struct pt_msix_info { int total_entries; int bar_index; uint32_t table_off; - u64 mmio_base_addr; + uint64_t mmio_base_addr; int mmio_index; int fd; void *phys_iomem_base; diff --git a/tools/ioemu/hw/pt-msi.c b/tools/ioemu/hw/pt-msi.c index b44b513b93..0af05e788f 100644 --- a/tools/ioemu/hw/pt-msi.c +++ b/tools/ioemu/hw/pt-msi.c @@ -666,7 +666,7 @@ int pt_msix_init(struct pt_dev *dev, int pos) uint8_t id; uint16_t flags, control; int i, total_entries, table_off, bar_index; - u64 bar_base; + uint64_t bar_base; struct pci_dev *pd = dev->pci_dev; id = pci_read_byte(pd, pos + PCI_CAP_LIST_ID); @@ -714,7 +714,7 @@ int pt_msix_init(struct pt_dev *dev, int pos) if ( (bar_base & 0x6) == 0x4 ) { bar_base &= ~0xf; - bar_base += (u64)pci_read_long(pd, 0x10 + 4 * (bar_index + 1)) << 32; + bar_base += (uint64_t)pci_read_long(pd, 0x10 + 4 * (bar_index + 1)) << 32; } PT_LOG("get MSI-X table bar base %lx\n", bar_base);